package com.party.core.model.analysis;

import com.party.core.model.BaseModel;

import java.io.Serializable;
import java.util.Objects;

/**
 * @program: party-temp
 * @description: 统计漏斗
 * @author: Huaqunhao
 * @create: 2018-08-01 09:08
 **/
public class StatisticsFunnel extends BaseModel implements Serializable {
    private static final long serialVersionUID = -7471373504748274084L;

    // 漏斗名称
    private String name;

    // 流程名称
    private String flowNames;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof StatisticsFunnel)) return false;
        if (!super.equals(o)) return false;
        StatisticsFunnel that = (StatisticsFunnel) o;
        return Objects.equals(getName(), that.getName());
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), getName());
    }

    @Override
    public String toString() {
        return "StatisticsFunnel{" +
                "name='" + name + '\'' +
                '}';
    }

    public String getFlowNames() {
        return flowNames;
    }

    public void setFlowNames(String flowNames) {
        this.flowNames = flowNames;
    }
}
